<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%
	ArrayList<String> jsPaths = (ArrayList<String>) request.getAttribute("jsPaths");
	jsPaths.add("/resources/bootstrap/assets/js/holder.js");
	jsPaths.add("/resources/bootstrap/table/jquery.dataTables.min.js");
	jsPaths.add("/resources/bootstrap/table/dataTables.bootstrap.js");
	jsPaths.add("/resources/custom/dashBoard/dashBoard.js");
	Object nav = request.getAttribute("nav");
	if (nav == null) {
		request.setAttribute("nav", "dashBoard");
	}
%>

<div class="row border">
	<a href="#">你好&nbsp;<sec:authentication
			property="principal.username" />,今天是 <span id="currentDay"></span>，欢迎登录系统
	</a>
</div>
<div class="row">
	<div class="col-xs-6 col-sm-3 border">
		<div class="row">
			<div class="col-sm-6">
				<h4>管辖项目</h4>
				<div class="projectLogo"></div>
			</div>
			<div class="col-sm-6">
				<div class="count">
					<a href="${pageContext.request.contextPath}/home/project"
						id="projectCount"></a>个
				</div>
			</div>

		</div>

	</div>
	<div class="col-xs-6 col-sm-3 border">
		<div class="row">
			<div class="col-sm-6">
				<h4>管辖设备</h4>
				<div class="deviceLogo"></div>
			</div>
			<div class="col-sm-6">
				<div class="count">
					<a href="${pageContext.request.contextPath}/home/device"
						id="deviceCount"></a>台
				</div>
			</div>
		</div>
	</div>
	<div class="col-xs-6 col-sm-3 border">
		<div class="row">
			<div class="col-sm-6">
				<h4>管辖楼栋</h4>
				<div class="buildingLogo"></div>
			</div>
			<div class="col-sm-6">
				<div class="count">
					<a href="${pageContext.request.contextPath}/home/target"
						id="buildingCount"></a>栋
				</div>
			</div>
		</div>
	</div>
	<div class="col-xs-6 col-sm-3 border">
		<div class="row">
			<div class="col-sm-6">
				<h4>管辖用户</h4>
				<div class="targetLogo"></div>
			</div>
			<div class="col-sm-6">
				<div class="count">
					<a href="${pageContext.request.contextPath}/home/target"
						id="targetCount"></a>户
				</div>


			</div>
		</div>
	</div>
</div>
<!-- <h2 class="sub-header">项目概览</h2> -->
<!-- <div class="table-responsive"> -->
<!-- 	<table id="dashBoard" -->
<!-- 		class="table table-striped table-bordered table-hover display" -->
<!-- 		cellspacing="0" width="100%"> -->
<!-- 		<thead> -->
<!-- 			<tr> -->
<!-- 				<th>项目名称</th> -->
<!-- 				<th>总热量</th> -->
<!-- 				<th>总面积</th> -->
<!-- 				<th>总时间</th> -->
<!-- 				<th>平均温度</th> -->
<!-- 			</tr> -->
<!-- 		</thead> -->
<!-- 	</table> -->
<!-- </div> -->